package com.example.nbastar;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

public class Star_list extends AppCompatActivity implements View.OnClickListener{

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.star_list);
        findViewById(R.id.btn_zuo).setOnClickListener(this);
        findViewById(R.id.btn_qd).setOnClickListener(this);
        findViewById(R.id.btn_zms).setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.btn_zuo:
                Intent intent = new Intent(Star_list.this,MainActivity.class);
                startActivity(intent);
                break;
            case R.id.btn_qd:
                Intent intent1 = new Intent(Star_list.this,Star_item.class);
                startActivity(intent1);
                break;
            case R.id.btn_zms:
                Intent intent2 = new Intent(Star_list.this,Star_item2.class);
                startActivity(intent2);
                break;
        }
    }
}
